<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/temp.dwt.php" codeOutsideHTMLIsLocked="false" -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<!-- InstanceBeginEditable name="doctitle" -->
<title>temp</title>
<!-- InstanceEndEditable -->
<!-- InstanceBeginEditable name="head" -->
<!-- InstanceEndEditable -->
<style type="text/css">
<!--
.ListStyle {font-family: Arial, Helvetica, sans-serif}
.STYLE4 {font-size: 10px}
.STYLE7 {font-family: Arial, Helvetica, sans-serif; font-size: 14px; }
.forLink {font-size: 24px }
.STYLE10 {font-family: Arial, Helvetica, sans-serif; font-size: 24px; }
a:link {text-decoration: none;}
a:visited {text-decoration: none;}
a:active {text-decoration: none;}
a:hover {text-decoration: none;}
-->

</style>
</head>

<body  style="background-image:url(../../images/websitebackgrund.png);">
<table width="802" border="0" align="center">
<tr><td colspan="4"><a href="../User/userlogin.php" class="STYLE7"><img src="../../images/logo.jpg" alt="Home Page"  border="0" /></a> 
  
    </td>
</tr>

  <tr>
  <td width="175" ><div align="center"><a href="../User/userlogin.php" class="STYLE10">User Login</a> </div></td>
    <td width="305"><div align="center"><a href="../SuperUser/superUserLogin.php" class="STYLE10">Super User Login</a> </div></td>
    <td width="232"><div align="center"><a href="managerLogin.php" class="STYLE10">Manager Login</a> </div></td>
    <td width="291"><div align="center"><a href="../Admin/adminLogin.php" class="STYLE10">Adminster Login</a> </div></td>
  </tr>  <tr>
    <td >&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
</table>
<!-- InstanceBeginEditable name="EditRegion" -->


<table border="0">
  <tr>
    <td width="479" class="STYLE3">Super User </td>
    <td><form id="form1" name="form1" method="post" action="addSuperUser.php">
      <div align="right">
        <input type="submit" name="Submit2" value="Add SuperUser" />
      </div>
    </form></td>
    <td width="102">&nbsp;</td>
    <td width="52">&nbsp;</td>
    <td width="61"><form id="form4" name="form4" method="post" action="../Manager/RetrivalUser.php">
      <div align="right">
        <input type="submit" name="Submit42" value="Cancel" />
      </div>
    </form></td>
  </tr>
  <tr>
    <td colspan="5"><table border="1" cellspacing="0">
      <tr>
        <td class="STYLE3" >Police ID</td>
        <td class="STYLE3" >Officer Name</td>
        <td class="STYLE3" >Super User Id </td>
        <td class="STYLE3" >Super User login name</td>
        <td class="STYLE3">Current  Position</td>
        <td class="STYLE3" >Archive No</td>
        <td class="STYLE3" >details</td>
        <td class="STYLE3" >delete</td>
      </tr>
<?php 
    include ("../../Connections/cpsms.php");
 	$query1 = "select * from superusers;";
	$sql1 = mysql_query($query1) or die(mysql_error());
	$array1 = mysql_fetch_array($sql1);
	$userid = $array1['userid'];

   while($array1){
   $query = "select * from users where Archiveid='$userid';";
	$sql = mysql_query($query) or die(mysql_error());
	$array = mysql_fetch_array($sql);
	  $Sid = $array1['sArchiveid'];
	  $Slogin = $array1['sloginname'];
      $archiveid = $array['Archiveid'];
      $CurrentPosition = $array['CurrentPosition'];
      $PoliceIDNo = $array['PoliceIDNo'];;
	  $username = $array['username'];
	  
      echo ("<tr><td>" .$PoliceIDNo ."</td><td>" .$username ."</td><td>" .$Sid ."</td><td>" .$Slogin ."</td><td>" .$CurrentPosition ."</td><td>" .$archiveid ."</td><td ><a href='SuperUserdetails.php?id=".$Sid ."'>details</a></td><td ><a href='../../ucm/UCManager/UCDeleteSuper.php?id=".$Sid ."'>Delete</a></td></tr>");
      $array1 = mysql_fetch_array($sql1);
   }
?>
    </table></td>
  </tr>
  <tr>
    <td colspan="5"><table width="346" border="0" align="right">
      <tr>
        <td width="123" height="25"><form id="form1" name="form1" method="post" action="addSuperUser.php">
          <div align="right">
            <input type="submit" name="Submit22" value="Add SuperUser" />
          </div>
        </form></td>
        <td width="109">&nbsp;</td>
        <td width="38">&nbsp;</td>
        <td width="58"><form id="form4" name="form4" method="post" action="../Manager/RetrivalUser.php">
          <div align="right">
            <input type="submit" name="Submit4" value="Cancel" />
          </div>
        </form></td>
      </tr>
    </table></td>
  </tr>
</table>
<?php 
      if ($_GET[id]== 1){
      echo "<script language='javascript'>"; 
      echo "Delete SuperUser success!!');"; 
      echo "</script>";
	  }
?>
        <p>&nbsp;</p>
<!-- InstanceEndEditable --> <div class="ListStyle STYLE4" style="background:#51A2B9">Copyright 2010_CP3047_G24   | E-mail:<a href="mailto:xiaoguang.bian@gmail.com">xiaoguang.bian@gmail.com</a> | Address: BJUT,chaoyangqu 100,Beijing. 10022
</div>
</body>
<!-- InstanceEnd --></html>
